package com.xuecheng.manage_cms.web.controller;

import com.xuecheng.api.cms.CmsPageTemplateControllerApi;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.manage_cms.service.CmsPageTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Aniymx on 2018/12/20 21:21.
 * 模板
 */
@RestController
@RequestMapping("/template")
public class CmsPageTemplateController implements CmsPageTemplateControllerApi {
    @Autowired
    private CmsPageTemplateService cmsPageTemplateService;

    @GetMapping("/findAll")
    public QueryResponseResult findAll() {
        return cmsPageTemplateService.findAllTemplate();
    }
}
